{{/* post single */}}
{{ define "main" }}
  {{ $SingleDisable  := .Params.Disable_comment }}               {{/* 页面内控制是否禁用Disqus */}}
  {{ $ConfigDisable  := .Site.Config.Privacy.Disqus.Disable }}   {{/* config配置项控制是否禁用Disqus */}} 
  {{ $Enable := $SingleDisable }}
  {{ if eq $Enable nil }}
  {{ $Enable = $ConfigDisable }}
  {{ end }}

  {{ if ne $Enable true }}
  {{- partial "disqus.html" . -}}
  {{ end }}

  <div class="article-paging">
    {{ with .NextInSection }}
      {{ partial "card/card-paging.html" . }}
    {{ end }}
    {{ with .PrevInSection }}
      {{ partial "card/card-paging.html" . }}
    {{ end }}
  </div>
{{ end }}

{{ define "widget" }}
  <aside class="widget-info">
    {{ partial "widget/widget-author.html" . }}

    {{ partial "widget/widget-toc.html" . }}

    {{ partial "widget/widget-articles.html" . }}

    {{ partial "widget/widget-categories.html" . }}

    {{ partial "widget/widget-tags.html" . }}
  </aside>
{{ end }}